<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>美瀛商旅-员工中心</title>
<script src="${ctxPath}/resource/front/js/airLines.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
	
	setEmptyCheck("remark");	
    setIntegeCheck("price");
	});
</script>
</head>

<body>
    <ul>
          <li class="titleonly">
          <img src="${ctxPath}/css/style/base/image/dot.gif" width="15" height="16" class="dot" />&gt;&gt;国内订单退票-操作<a href="javascript:history.back()"><img src="${ctxPath}/css/style/base/image/backtrack.gif" width="14" height="14" align="absmiddle" class="backtrack"/>返回</a>
        </li>
        </ul>
	<ul>
<div id="change" >
<div id="check_top">
	<div id="title_c"><li>订单信息</li></div>
    <div id="content_c">
    <li class="w100">订单号：<strong>${bOrder.orderNo}</strong></li>
    <li class="w100">pnr：${bOrder.pnr}</li>
    <li class="w100">订单金额：￥${bOrder.allPrice}</li>
    <li class="w100">订单状态：<fmt:message key="bOrder.status${bOrder.status}"></fmt:message></li>
 <!--    <li class="w100">产品类型：全局产品</li> -->
    <li class="w100">订单来源：${bOrder.source}</li>
    <li class="w100">出票渠道：${bOrder.ticketChannel}</li>
    <div id="clear"></div>
    </div>
</div>
	<div id="check_flight">
    	<div id="title_c">
            <li class="f150">航空公司</li>
            <li class="f60">航班号</li>
            <li class="f50">舱位</li>
            <li class="f30">机型</li>
            <li class="f100">航班时间</li>
            <li class="f120">起降机场</li>
            <li class="f40">里程</li>
            <li class="f60">飞行时间</li>
            <li class="f30">经停</li>
            <div id="clear"></div>
     	</div>
     	
     	<c:forEach var="flight" items="${bOrder.flights}" varStatus="item">
        <div id="content_c">
            <li class="fc150"><img src="${ctxPath}/resource/front/image/international_ticket/${fn:substring(flight.code,0,2)}.gif" /><label id="flightName"></label></li>
            <script>
    		var carrier='${fn:substring(flight.code,0,2)}';
    		for(var i=0;i<airLines.length;i++){
    			if(carrier==airLines[i].code){
    				carrierName=airLines[i].name;
    				$("#flightName").text(carrierName);
    				break;
    			}
    		};
    		</script>
            <li class="fc80"><span id="change_code">${flight.code}</span>
            </li>
            <li class="fc60">${flight.cabin}</li>
            <li class="fc30">--</li>
             <li class="fc130"><span id="flight_day">${flight.arrDay}<br />${flight.depTime}-${flight.arrTime}</span>
             </li>
             <li class="fc120">${flight.boardPointName}<br />${flight.offPointName}</li>
            <li class="fc60">${flight.mileage}公里</li>
            <li class="fc60">${flight.flightTime}分钟</li>
            <li class="fc40">${flight.stop}</li>
            <div id="clear"></div>
        </div>
        </c:forEach>
    </div>
	
    <div id="check_msg">
    	<div id="title_c">
            <li class="f100">旅客类型</li>
            <li class="f60">优惠价</li>
            <li class="f60">票面价</li>
            <li class="f40">机建</li>
            <li class="f40">燃油</li>
            <li class="f40">人数</li>
            <li class="f40">保险</li>
            <li class="f100">保险份数</li>
            <li class="f60">合计</li>
            <li class="f40">快递</li>
            <li class="f40">总价</li>
            <div id="clear"></div>
     	</div>
     	
     	<c:forEach var="passengerDto" items="${passengerDtos}" varStatus="item"> 
        <div id="content_c">
            <li class="fc100"><fmt:message key="passenger.ageType${passengerDto.passengerType}"></fmt:message></li>
            <li class="fc80"><span>￥<fmt:parseNumber value="${passengerDto.viewPrice}"></fmt:parseNumber></span></li>
            <li class="fc60"><span>￥<fmt:parseNumber value="${passengerDto.discountPrice}"></fmt:parseNumber></span></li>
            <li class="fc60"><span>￥<fmt:parseNumber value="${passengerDto.constructionFee}"></fmt:parseNumber></span></li>
            <li class="fc40"><span>￥<fmt:parseNumber value="${passengerDto.fuelTax}"></fmt:parseNumber></span></li>
            <li class="fc60"><span>${passengerDto.passengerCount}</span></li>
            <li class="fc40"><span>￥<fmt:parseNumber value="${passengerDto.bxPrice}"></fmt:parseNumber></span></li>
            <li class="fc120"><span><fmt:parseNumber value="${passengerDto.bxCount}"/></span></li>
            <li class="fc60"><span>￥<fmt:parseNumber value="${passengerDto.totalPrice}"/></span></li>
            <li class="fc60">
             <c:if test="${fn:length(passengerDtos)==item.count}">
            <span>${bOrder.xcdPrice}
            </span>
            </c:if>
            </li>
            <li class="fc40"><span style="color:#F36">￥<fmt:parseNumber value="${passengerDto.totalPrice}"/></span></li>
            <div id="clear"></div>
        </div>
        </c:forEach>
        	
    </div>
    		<form action="bOrders.do">
    		<input type="hidden" name="cmd" value="postReturn"/>
			<div id="check_explain">
			<input type="hidden" name="orderId" value="${param['id']}"></input>
            	<div id="title_c">
                <li>退票明细：</li>
                </div>
                <div id="content_c">
               <table border="0" cellspacing="0" cellpadding="0" class="w80">
                      <tr>
                        <td>退票原因：</td>
                        <td>${bOrder.returnDescription}</td>
                      </tr>
                      <tr>
                        <td>退票金额：</td>
                        <td><input class="inputbox120" name="price" id="price" check="2" tip="整数类型，不允许为空"/></td>
                      </tr>
                      <tr>
                        <td>&nbsp;</td>
                        <td><p style="color:#999">请注意：退款金额仅为机票退款金额，不包括保险，保费会由保险公司自动退款！</p></td>
                      </tr>
                      <tr>
                        <td>备注：</td>
                        <td><label>
                          <textarea  check=2 tip="不允许为空" cols="45" rows="5" name="remark" id="remark"></textarea>
                        </label></td>
                      </tr>
               </table>
				<div id="clear"></div>
                </div>
            </div>
            
                <div id="button">
                <input  type="submit" value="确定" style="width:100px; text-align:center; margin-left:100px" />
                <input  type="button" onclick="javascript:history.back()" value="取消" style="width:100px; text-align:center;margin-left:50px" />
				</div>
				</form>
</div><!--浮层结束-->
	</ul>
  </div>


</body>
</html>